package com.liang.service;

import com.liang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {
    //增加一本书
    int addBook(Books books);
    //删除一本书，根据id
    int deleteBookByID(int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书，根据id
    Books queryBookByID(int id);
    //查询全部书
    List<Books> queryAllBooks();

    //根据名字查询书籍
    List<Books>  queryBookByName(String queryBookName);

}
